$(function () {
    var loading = weui.loading('loading', {
        className: 'custom-classname'
    });
    var result = Model.goods.proxyMoreGoods();
    if (!sessionStorage.getItem('hmdj_stopError')) {
        sessionStorage.setItem('hmdj_stopError', true);
    } else {
        if (result.code) {
            Common.fn.formatOutput(result);
            loading.hide();
            return false;
        }
    }
    for (var i = 0; i < result.data.length; i++) {
        var item = '<div class="goods-per"><a class="goods-flow-item" href="product_release_detail.html?gid=' + result.data[i].goodsId + '"><img class="goods-flow-item-thumb" src="' + result.data[i].photo + '"></a><p>' + result.data[i].content + '</p><div class="weui-cell"><div class="weui-cell__bd patron-price">￥' + result.data[i].topPrice + '元起</div><div class="weui-cell__ft"><span class="text-ffb123">' + result.data[i].charges + '%佣金</span></div></div></div>';
        $('.goods-flow-list').append(item);
    }
    loading.hide();
});